package com.qf.controller;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.qf.dto.R;
import com.qf.service.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
杨威
2022/1/6
22:19
*/
@RestController
@RequestMapping("/device")
public class DeviceController {

    @Autowired
    DeviceService deviceService;
    @RequestMapping("/send")
    public R sendController(String id,String command) throws JsonProcessingException {
        deviceService.sendController(id,command);
        return R.setOk();
    }
}
